<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"  %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"     prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MIO美爱我氧气站</title>
		<link rel="icon" href="${pageContext.request.contextPath }/assets/images/mio.ico" type="image/x-icon">
        <link href="${pageContext.request.contextPath }/assets/css/main.css" rel="stylesheet" type="text/css" />
        <link href="${pageContext.request.contextPath }/assets/css/news.css" rel="stylesheet" type="text/css" />		
   	    <script type="text/javascript" src="${pageContext.request.contextPath }/assets/js/jquery-1.9.1.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath }/assets/videoplayer/flowplayer-3.2.8.min.js"></script>
    </head>
    <body>
    	<div id="bg">
	    	<!-- 头部jsp -->
			<jsp:include page="header.jsp" ></jsp:include>
			<div style="clear:both;"></div>
			<div class="news-img">
			</div>
		</div>
		<div id="bg">
			<div class="leftNews">
				<div class="leftNews-title">
				最新消息
				</div>
				<c:forEach var="item" items="${messages }" varStatus="status">
					<div class="brief-news">
						<a href="${pageContext.request.contextPath }/messageDetail.do?messageId=${item.id }">${item.title }</a>
						<!-- <span>2014.03.05</span> -->
					</div>
				</c:forEach>
			</div>
			<div class="rightNews">
				<div class="rightNews-title">
					LATEST NEWS
				</div>
				<div class="newsContentTitle">
					${message.title }

				</div>
				<div class="newsContentTime">${fn:replace(fn:substring(message.createdTime, 0, 10),"-",".")}</div>
				<div class="newsContent">
					${message.content }
				</div>
			</div>
			<div style="clear:both;"></div>
		</div>
		<div id="bg"> 
			<!-- 尾部jsp -->
			<jsp:include page="footer.jsp"></jsp:include>
			
	    </div>
    </body>
</html>